package cn.francis.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用返回码
 *
 * @author 张俊辉
 */

@Getter
@AllArgsConstructor
public enum CommonErrorCode {
    SUCCESS("00000000", "成功"),
    PARAMS_ERROR("00000001", "参数不合法"),

    HTTP_FORBIDDEN("00000002", "没有访问权限，请联系管理员授权"),
    HTTP_UNAUTHORIZED("00000003", "认证失败，无法访问系统资源"),
    NOT_SUPPORT_METHOD("00000004", "不支持该方法"),
    NOT_LOGIN("00000005", "请您重新登录"),
    SYSTEM_ERROR("00000007", "系统开小差，请稍后再试"),
    USERNAME_PASSWORD_ERROR("00000008", "账号或密码错误"),
    FILE_NOT_EXIST("00000009", "文件不存在"),
    MOBILE_IS_NULL("00000010", "请前往【个人信息】页面完善手机号后使用该服务。"),
    REPEAT_REQUEST("00000011", "访问过于频繁，请稍候再试"),
    OSS_UPLOAD_ERROR("00000012", "上传文件失败"), //前端token验证专用返回码
    BANNER_SCENE_ERROR("00000013", "广告位场景错误"),
    REINDEX_ERROR("00000014", "5分钟内解析失败"),

    TITLE_EXIST("00000015", "会话标题已存在"),
    TITLE_NOT_EXIST("00000016", "会话标题不存在")
    ;

    private final String code;

    private final String message;


}
